package com.acmen.easyapi.service;

import com.acmen.easyapi.executor.CallResultQueryExe;
import com.acmen.easyapi.model.CallResult;
import com.acmen.easyapi.model.CustomizePage;
import com.acmen.easyapi.model.Response;
import com.acmen.easyapi.repository.CallResultRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author acmen
 * 组合测试执行结果记录
 */
@Service
public class CallResultService {
    @Autowired
    private CallResultQueryExe callResultQueryExe;


    public CustomizePage<CallResult> queryPageList(String reportId, int pageSize, int pageNo) {
        Response<CustomizePage<CallResult>> callResults = callResultQueryExe.selectPage(reportId, pageSize, pageNo);
        return callResults.getData();
    }

}
